package com.ueboot.weishop.service.customer;

import com.ueboot.weishop.entity.customer.CustomerInvoiceEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Neel on 2017/9/24.
 */
public interface CustomerInvoiceService {
    Page<CustomerInvoiceEntity> findBy(Pageable pageable);

    Page<CustomerInvoiceEntity> findBy(Pageable pageable, String keyword);

    CustomerInvoiceEntity save(CustomerInvoiceEntity s);

    CustomerInvoiceEntity get(Long id);

    List<CustomerInvoiceEntity> findByCustomerId(Long customerId);

    void delete(Long id);

    void delete(Long[] ids);

	void updateUnDefaultByCustomerId(Long id, Boolean unDefault);

	CustomerInvoiceEntity findById(Long invoiceId);
}
